#include <stdio.h>
int main()
{
    int years, flag;
    while(scanf("%d", &years) != EOF){
        if(years % 400 == 0 || (years % 4 == 0 && years % 100 != 0)){
            flag = 1;
        }else{
            flag = 0;
        }
        printf("%d is a leap year.( %d )\n", years, flag);

    }
    return 0;
}